<template>
    <el-header style="text-align: right; font-size: 12px">
        <el-dropdown>
            <i class="el-icon-setting" style="margin-right: 15px"></i>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item >
                    <router-link to="/login">退出登录 </router-link>
                </el-dropdown-item>
                <el-dropdown-item>修改密码</el-dropdown-item>
            </el-dropdown-menu>
        </el-dropdown>
        <span>{{$store.state.userinfo}}</span>
    </el-header>
</template>
<script>
    export default {
        name: "home",
        methods: {
            tuichu:function() {
                console.log("1111");
                // this.$router.push('/login')
            }
        }
        
    }
</script>
<style scoped>
</style>
